﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CQIE.LabAssist.Models
{
    /// <summary>
    /// 实验室表
    /// </summary>
    [Table("TB_Laboratory")]
    public class Laboratory
    {
        /// <summary>
        /// 实验室id
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 实验室名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 实验室编号
        /// </summary>
        public string Nubmer { get; set; }

        #region 外键
        /// <summary>
        /// 所属楼层
        /// </summary>
        public Floor  floor { get; set; }
        /// <summary>
        /// 对应楼层id
        /// </summary>
        public int floorId { get; set; }

        /// <summary>
        /// 实验室管理员
        /// </summary>
        public User Admin {  get; set; }
        /// <summary>
        /// 实验室管理员id
        /// </summary>
        public int UserId { get; set; }

        public List<Check> checks { get; set; }
        #endregion

    }
}
